const filterOption1 = {
	items: [{
			label: '条码',
			type: "input",
			key: "batchNo",
			method: "input",
			placeholder: '',
			value: undefined
		},
		{
			label: '商品编码',
			type: "input",
			key: "commodity",
			method: "input",
			placeholder: '',
			value: undefined
		},
		{
			label: "销售分类",
			type: "dropdown",
			key: "salesClassification",
			data: [],
			placeholder: '请选择',
			value: undefined
		},
		/* {
			label: "仓库地点",
			type: "dropdown",
			key: "add",
			data: [],
			placeholder: '请选择',
			value: undefined
		}, */
	],
	btnGroup: [{
			label: "查询",
			type: "search"
		},
		{
			label: "清空",
			type: "clear"
		}
	],

};
// const path = ['销售管理', '现货管理','新建'];
const tableHeaderData = [{
		prop: 'barCode',
		label: '条码',
		width: '',
		show: true,
	},
	{
		prop: 'goodsNo',
		label: '商品编码',
		width: '150',
		show: true,
	},
	{
		prop: 'salesTypeName',
		label: '销售分类',
		width: '',
		show: true,
	},
	{
		prop: 'aSeriesOfName',
		label: '系列',
		width: '150',
		show: true,
	},
	{
		prop: 'descriptionWord',
		label: '描述',
		width: '220',
		show: true,
	},
	{
		prop: 'amount',
		label: '数量',
		width: '',
		show: true,
	},
	{
		prop: 'totalPrice',
		label: '商品应付总金额',
		width: '150',
		show: true,
	},
	{
		prop: 'fee',
		label: '定制服务费',
		width: '100',
		show: true,
	},
	{
		prop: 'price',
		label: '商品金额',
		width: '',
		show: true,
	},
	{
		prop: 'warehouseName',
		label: '仓库地点',
		width: '150',
		show: true,
	},

]
const tableHeaderData2 = [{
		prop: 'barCode',
		label: '条码',
		width: '100',
		show: true,
	},
	{
		prop: 'goods',
		label: '商品编码',
		width: '150',
		show: true,
	},
	{
		prop: 'salesOfClassification',
		label: '销售分类',
		width: '100',
		show: true,
	},
	{
		prop: 'aSeriesOf',
		label: '系列',
		width: '150',
		show: true,
	},
	{
		prop: 'descriptionWord',
		label: '描述',
		width: '400',
		show: true,
	},
	// 	{
	// 		prop:'totalPrice',
	// 		label:'价格',
	// 		width:'',
	// 		show:true,
	// 	},
	{
		prop: 'location',
		label: '仓库地点',
		width: '120',
		show: true,
	},
	{
		prop: 'canUseInventory',
		label: '可用库存数量',
		width: '120',
		show: true,
	},
]
const tableHeaderData3 = [{
		prop: 'batchNo',
		label: '条码',
		width: '',
		show: true,
	},
	{
		prop: 'goods',
		label: '商品编码',
		width: '150',
		show: true,
	},
	{
		prop: 'salesOfClassification',
		label: '销售分类',
		width: '',
		show: true,
	},
	{
		prop: 'aSeriesOf',
		label: '系列',
		width: '150',
		show: true,
	},
	{
		prop: 'description',
		label: '描述',
		width: '',
		show: true,
	},
	{
		prop: 'totalPrice',
		label: '价格',
		width: '',
		show: true,
	},
	{
		prop: 'location',
		label: '仓库地点',
		width: '',
		show: true,
	},
	{
		prop: 'canUseAmount',
		label: '可用库存数量',
		width: '',
		show: true,
	},
]


const tableData = [

]

const basicMsgData2 = [
	{
		label: '销售人',
		data: [{
				label: '1',
				value: '1'
			},
			{
				label: '0',
				value: '0'
			}
		],
		value: '',
		isRequired: true,
		isDisabled: true
	}
]
const deliveryInfo = [{
		label: '收件人姓名',
		value: ''
	},
	{
		label: '收件人手机号',
		value: ''
	},
	{
		label: '短信通知手机',
		value: ''
	}
]
const filterOption2 = {
	items: [{
		label: "分组名称",
		type: "dropdown",
		data: [{
				label: "大陆",
				value: "1"
			},
			{
				label: "香港",
				value: "2"
			},
			{
				label: "境外",
				value: "3"
			}
		],
		placeholder: "请选择",
		value: undefined,
		key: "origin"
	}, ],
	btnGroup: [{
			label: "查询",
			type: "search"
		},
		{
			label: "清空",
			type: "clear"
		}
	],

};
const sliderSelect = {
	size: {
		value: 20,
		option: [{
			value: '20',
			label: '20'
		}, {
			value: '30',
			label: '30'
		}],
		sliderVal: [20, 20]
	},
	weight: {
		value: 20,
		option: [{
			value: '20',
			label: '20'
		}, {
			value: '30',
			label: '30'
		}],
		sliderVal: [20, 20]
	}
}
const pager = {
	params: {
		pageIndex: 1,
		pageSize: 10,
	},
	pageTotal: 100,
	pageSizeArr: [10, 20, 30, 40]
};
//新建订单数据
const params = {
	isReorder: false,
	isNewUser: true,
	trueLoveDate: undefined,
	loveConfirmation: undefined,
	orderType: 10,
	originChannel: "",//来源渠道
	salesman: "a",
	shipper: "",
	remarks: '',
	currency: "RMB",
	orderAmount: '',
	amountPayable: '',
	payAmount: '',
	mobile: '',
	customerId: 1,
	manName: '',
	womanName: '',
	idCard: '',
	sexuality: '',
	exclusiveCode: '',
	goodsList: [],
	shippingMethod: '0',
	saleReceivingList: [],
	isPayInFull: true,
	isPosPay: '1',
	expectReceiveTime: ''
}

const options = []
const props = {
	label: 'label',
	value: 'code',
	children: 'children'
}
const userSelfLift = {
	takeGoodsShopCity: '',
	takeGoodsShop: '',
	takeGoodsTime: ''
}
let Model = {
	data() {
		return {
			Model: {
				newLoading: false,
				firstStep: true,
				secondStep: false,
				thirdStep: false,
				thirdStep2: false,
				fourthStep: false,
				womanRingStatus: false, //是否有女戒显示提示
				womanRingPay: false,
				TableSelectData: [],
				dialogTableChecked: '',
				tableHeaderData: tableHeaderData,
				tableHeaderData2,
				tableHeaderData3,
				tableData: tableData,
				basicMsgDisabled: true, //基础信息禁选
				allStoresDisabled:true,	//发货门店禁选
				basicMsgData2: basicMsgData2,
				deliveryInfo: deliveryInfo, //收货信息
				checkList: '',
				addtype: '', //地址类型
				Address: '', //详细地址
				sexuality: '',
				trueLoveDate: '', //真爱日期
				exclusiveCode: '', //专属编码
				loveDeclaration: '', //	爱的礼物宣言
				opt: '',

				params: params,
				changeGoodsDialogFlag: false,
				changeGoodsDialogGroup: false,
				filterOption1: filterOption1, //表单1
				filterOption2: filterOption2, //表单2
				changeAddress: false, //选择地址弹窗
				radioAddress: '', //地址
				checkedAddress: {
					addressType: '0'
				}, //当前操作的地址
				options: options,
				selectedOptions: [],
				props: props,
				selectedOptions3: [],

				customFee: 800, //test
				coupon: '0', //test
				payMethod: '1',

				mainTableData: [], //主表格显示的数据数组
				tableDataDialog: [],
				tableDataDialogGroup: [],
				idData: [],
				totlePrice: '', //商品主表格 合计价格

				payPos: false, //pos非pos弹窗
				linktoResult: {}, //
				userSelfLift, //自提数据
				allCities: [], //全部城市
				cityStore: [], //城市下门店
				itemPrice: '',
				submitTableData: [],
				originChannelData:[],//来源渠道数组
			}
		}
	}
}
export default Model;
